package com.jspgou.core.manager;

import javax.servlet.http.HttpServletRequest;

import com.jspgou.cms.entity.ShopAdmin;
import com.jspgou.common.page.Pagination;
import com.jspgou.core.entity.Admin;
import com.jspgou.core.entity.Log;

public interface LogMng {

	public Pagination getPage(Integer category, Long siteId,
			String username, String title, String ip, int pageNo, int pageSize);

	public Log findById(Long id);

	public Log operating(HttpServletRequest request, String title,
			String content);

	public Log loginFailure(HttpServletRequest request,ShopAdmin admin);

	public Log loginSuccess(HttpServletRequest request, ShopAdmin admin);

	public Log loginOut(HttpServletRequest request,ShopAdmin admin);
	
	public Log save(Log bean);

	public Log deleteById(Long id);

	public Log[] deleteByIds(Long[] ids);

	public int deleteBatch(Integer category, Long siteId, Integer days);
}
